/*
 * Copyright (c) 2007 Compl Yue Still, All Rights Reserved.
 */

/**
 * 
 */
package hbi.wire.java.host;

import hbi.java.util.CharSetConstants;

class UTF8Chunks extends BinaryChunks
{

    public Object getTagValue()
    {
        return new String((byte[]) super.getTagValue(), CharSetConstants.UTF8);
    }

    @Override
    protected boolean isFinalChunkTag(int tag)
    {
        return tag == 'S';
    }

    @Override
    protected boolean isNonFinalChunkTag(int tag)
    {
        return tag == 's';
    }

    UTF8Chunks(boolean isFinalChunk)
    {
        super(isFinalChunk);
    }

}
